package com.blockmeta.bbs.businesslibrary.net.pojo;

import com.google.gson.annotations.SerializedName;

/**
 * Created by author on 2018/1/2.
 */

public class UserToken {

    private static class Instance {
        private static final UserToken INSTANCE = new UserToken();
    }

    private UserToken() {
    }

    public static UserToken getInstance() {
        return Instance.INSTANCE;
    }

    /**
     * token : 3956f2679595d10e838c190dffdf9ac88c269c05
     * uid : 0
     * last_version : 1.0.0
     * url :
     * info :
     * force_update : false
     */

    private String token;
    private int uid;
    private String last_version;
    private String ticket;
    private String time;
    private String url;
    private String info;
    private boolean force_update;
    private String config_url;
    private boolean activity_open;
    private ActivityInfoBean activity_info;

    public String getTicket() {
        return ticket;
    }

    public String getTime() {
        return time;
    }

    /**
     * activity_info : {"id":14,"icon":"http://pacvi7nkj.bkt.clouddn.com/activity/Happy_CET.png","url":"http://bbt-cet.h5_test.8btc.com"}
     */



    public ActivityInfoBean getActivity_info() {
        return activity_info;
    }

    public void setActivity_info(ActivityInfoBean activity_info) {
        this.activity_info = activity_info;
    }


    public boolean isActivity_open() {
        return activity_open;
    }

    public void setActivity_open(boolean activity_open) {
        this.activity_open = activity_open;
    }

    public FlashBean getFlash() {
        return flash;
    }

    public void setFlash(FlashBean flash) {
        this.flash = flash;
    }

    private FlashBean flash;


    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getLast_version() {
        return last_version;
    }

    public void setLast_version(String last_version) {
        this.last_version = last_version;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public boolean isForce_update() {
        return force_update;
    }

    public void setForce_update(boolean force_update) {
        this.force_update = force_update;
    }

    public String getConfig_url() {
        return config_url;
    }

    public void setConfig_url(String config_url) {
        this.config_url = config_url;
    }

    public static class FlashBean {
        /**
         * image : http://p5zl7fy0n.bkt.clouddn.com/flash0518.jpg
         * link : blockmeta://activity?tid=167645
         * times
         */

        private String image;
        private String link;
        private String times;

        public String getTimes() {
            return times;
        }

        public void setTimes(String times) {
            this.times = times;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getLink() {
            return link;
        }

        public void setLink(String link) {
            this.link = link;
        }
    }

    public static class ActivityInfoBean {
        /**
         * id : 14
         * icon : http://pacvi7nkj.bkt.clouddn.com/activity/Happy_CET.png
         * url : http://bbt-cet.h5_test.8btc.com
         */

        private int id;
        private String icon;
        @SerializedName("url")
        private String url;

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        private String title;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }


    }
}
